const Mock = require("mockjs");
const data = Mock.mock({
    "list|5": [{
        title: "@ctitle(2)",
        "children|7-8": [{
            img: "@image(100x100,@color)",
            title: "@ctitle(2)",
            num: 0,
            id: "@id",
        }]
    }],
})
module.exports = {
    devServer: {
        before(app) {
            app.get("/list", (req, res) => {
                res.send(data.list);
            })
           
        }
    }
}